<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
  
  <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
      <title>
       <h:outputText value="Creer un nouveau composant"/>
      </title>
     <link href="../css/solutech.css" rel="stylesheet" media="screen"></link>
     
    </head>
    <body><h:form>
        <table width="100%" border="0">
          <tr>
            <td>
              <h1 align="center">
               <h:graphicImage url="/img/logo.jpg"
                                alt="Solutech Logo" style="height: 124px; width: 181px"/>
                <h:outputText value="Solutech-Shop Application"/>
              </h1>
            </td>
          </tr>          
          <tr>
          <td> 
        <f:subview id="adminbar">
          <jsp:include page="adminbar.jsp"/>
        </f:subview>
          </td>
         </tr>
          <tr>
            <td>
              <p>
                <h:outputText value="Creation d'un nouveau composant" styleClass="PageTitle"/></p>

              <h:messages globalOnly="true" infoClass="RegError"/>              

              <h:panelGrid width="70%" columns="3" border="0">
               <h:outputLabel value="Code:" for="code" />                
                <h:inputText required="true" id="code"
                             binding="#{CreerComposant_Backing.code}"/>
                <h:message for="code" errorClass="ValidateError"/>

                <h:outputLabel value="Libelle:" for="libelle" />                
                <h:inputText required="true" id="libelle"
                             binding="#{CreerComposant_Backing.libelle}"/>
                <h:message for="libelle" errorClass="ValidateError"/>

                <h:outputLabel value="Categorie:" for="cat" />
					<h:selectOneMenu required="true" id="categorie"></h:selectOneMenu>

					<h:message for="cat" errorClass="ValidateError"/>

              

          


                <f:verbatim>&nbsp;</f:verbatim>
                <h:panelGroup>
                  <h:commandButton value="Creer"
                                   action="#{CreerComposant_Backing.creerComposant}"/>
                  <f:verbatim>&nbsp;&nbsp;&nbsp;&nbsp;</f:verbatim>
                  <h:commandButton value="Cancel" action="cancel"
                                   immediate="true"/>
                </h:panelGroup>

              </h:panelGrid>
            </td>
          </tr>
        </table>
      </h:form></body>
  </html>
</f:view>